<?php

class DefaultController extends Controller
{
	public function actionIndex()
	{
		$this->render('index');
	}
    public function accessRules()
    {
        return array(
            array('allow',  // allow all users to perform 'index' and 'view' actions
                'actions'=>array('view','create'),
                'users'=>array('*'),
            ),
            array('allow', // allow authenticated user to perform 'index' actions
                'actions'=>array('index'),
                'users'=>array('admin'),
            ),
        );
    }
}